/**
 * 
 */
package com.mvc.service.vo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.mapper.vo.CustomDao;


/**
 * @author qingjie
 *
 */
@Service
public class CustomServiceImpl implements CustomService {
	
	@Autowired
	private CustomDao cDao;

	@Override
	public int getCount(String count,String personId, String tableName) {
		int maxCount = 1;
		String value = cDao.getCount(count,personId, tableName);
		if(value!=null){
			maxCount = Integer.parseInt(value) + 1;
		}
		return maxCount;
	}

}
